package com.ming.mq.controller;


import com.ming.mq.simple.SimpleMQSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/simple")
public class SimpleController {
    @Autowired(required = false)
    private SimpleMQSender simpleMQSender;

    @RequestMapping("/send")
    public void send(){
        simpleMQSender.send("发送direct消息");
    }


}
